<?php
include_once 'head_c.php';
?>
<script language="JavaScript">
<!--
//目的是为了做风格方便
document.write('<div class="wrap">');
//-->
</script>
<div class="wrap">
	﻿
	<!--
-->
</div>
<div class="reglogin">
	<div class="sign">
		<div class="singMain">
			<form name="form1" id="login" method="post"
				action="/front/login_post">
				<input class="up" type="hidden" value="" name="contentid">
				<table>
					<tbody>
						<tr>
							<td><div class="reg_loginlogo" style="margin: 0;">
									<img src="/static/front/logo.png">
									<div class="con">让信用有价值 ,让生活更美好</div>
								</div></td>
						</tr>
						<tr>
							<td><input class="text user" type="text"
								placeholder="请输入会员名或者手机号" value="" name="username" id="username"
								autocomplete="off"></td>
						</tr>
						<tr>
							<td><input class="text password" type="password"
								placeholder="请输入密码" value="" name="password" id="password" autocomplete="off"></td>
						</tr>
						<tr>
							<td class="rss" ><!--<input type="checkbox" value="1" name="isure"><label
								class="rss">记住账户和密码 --></label>
							<p style="float: right; padding-right: 20px;">
									忘记密码? <a href="/front/lost_pass"> 找回</a>
								</p></td>
						</tr>
						<tr>
							<td><a style="width: 100%;
  height: 50px;
  display: block;
  text-align: center;
  line-height: 50px;
  background-color: #f90000;
  border-radius: 5px;  color: #fff;  font-size: 25px;  margin: 0 auto;  text-align: center;  margin: 10px auto;" href="javascript:void(0)" onclick="denglu()">登录</a> <input
								type="hidden" name="step" value="2"> <input type="hidden"
								name="fromurl" value="/front/register"> <input
								type="hidden" name="cookietime" value="86400"></td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</div>



<script>
   function denglu(){   
		name = $("#username").val();
		if(name==''){
			alert('手机号码不能为空');
			document.getElementById('username').focus();
			return false;
		}
		password = $("#password").val();
		if(password==''){
			alert('密码不能为空');
			document.getElementById('password').focus();
			return false;
		}
	   $.post("/front/login_post",{
		    "name":name,
		    "pass":password,
		  },
		  function(data,status){
			  var res = eval('(' + data + ')'); 
			  if(res.success==0){
					alert(res.msg);
			}else{
				alert(res.msg);
				window.location.href="/front/index";
			}
		  });
   }
 </script>
<script type="text/javascript">

</script>
<script>
	$(document).ready(function(){
    fn();})
    function cs(){
    	$('.opdiv').hide()
    }
</script>
<script language="JavaScript">
clickEdit.init(); //生成一些快速操作按钮
get_cache_button("0");	//生成表单中的数据恢复按钮
</script>
<?php
include_once 'foot.php';
?>
</body>
</html>